summaryrefslogtreecommitdiffhomepage
path: root/files/pkgconf_host/bin/%[_target]-pkg-config
blob: 7351e62ff4001188c9f68c967e0b2fcaaf4591d5 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}..";
if [ "${#}" -eq 1 ]\
&& [ "x${1}" = "x--version" ]; then
	"${PREFIX}/bin/pkgconf" --version;
else
	"${PREFIX}/bin/pkgconf" --define-variable=prefix="${PREFIX%/}/native" --keep-system-cflags "${@}";
fi;